package com.letoken.platform.repo.app.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 基金直推业绩排名奖励配置表
 * </p>
 *
 * @author 作者
 * @since 2023-09-13
 */
@Getter
@Setter
@TableName("admin_fund_rank_config")
@ApiModel(value = "AdminFundRankConfig对象", description = "基金直推业绩排名奖励配置表")
public class AdminFundRankConfig extends Model<AdminFundRankConfig> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("排名")
    @TableField("ranking")
    private Integer ranking;

    @ApiModelProperty("奖励比例")
    @TableField("rate")
    private BigDecimal rate;

    @TableField("create_time")
    private LocalDateTime createTime;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
